package com.dgut.legalservice.domain;

import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.IdentityDialect;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Table(name = "t_order")
public class Order implements Serializable {
    @Id
    @KeySql(dialect = IdentityDialect.MYSQL)
    private Integer id;//订单id
    @Column(name = "orderNum")
    private String orderNum;//订单编号
    @Column(name = "orderName")
    private String orderName;//订单名称
    @Column(name = "serviceType")
    private String serviceType;//服务类型
    @Column(name = "allAmount")
    private String allAmount;//订单总金额
    @Column(name = "sendOrderStatus")
    private String sendOrderStatus;//派单情况
    @Column(name = "status")
    private String status;//状态
    @Column(name = "acceptStatus")
    private String acceptStatus;//受理状态
    @Column(name = "createTime")
    private Date createTime;//创建时间
    @Column(name = "updateTime")
    private Date updateTime;//更新时间
    @Column(name = "createBy")
    private Integer createBy;//创建人
    @Column(name = "updateBy")
    private Integer updateBy;//修改人
    @Column(name = "flowStatus")
    private String flowStatus;//流程状态
    @Column(name = "payNum")
    private String payNum;//支付宝支付编号
    @Column(name = "payStatus")
    private String payStatus;//支付状态
    @Column(name = "nextStatus")
    private String nextStatus;//下一步状态
    @Column(name = "acceptUserId")
    private Integer acceptUserId;//接收人
    @Column(name = "userId")
    private Integer userId;//外键关联用户id

    private List<Product> products;//产品

    private List<Company> companies;//公司

    private Approval approval;//审核表

    public Approval getApproval() {
        return approval;
    }

    public void setApproval(Approval approval) {
        this.approval = approval;
    }

    public List<Company> getCompanies() {
        return companies;
    }

    public void setCompanies(List<Company> companies) {
        this.companies = companies;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public String getAllAmount() {
        return allAmount;
    }

    public void setAllAmount(String allAmount) {
        this.allAmount = allAmount;
    }

    public String getSendOrderStatus() {
        return sendOrderStatus;
    }

    public void setSendOrderStatus(String sendOrderStatus) {
        this.sendOrderStatus = sendOrderStatus;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAcceptStatus() {
        return acceptStatus;
    }

    public void setAcceptStatus(String acceptStatus) {
        this.acceptStatus = acceptStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public String getFlowStatus() {
        return flowStatus;
    }

    public void setFlowStatus(String flowStatus) {
        this.flowStatus = flowStatus;
    }

    public String getPayNum() {
        return payNum;
    }

    public void setPayNum(String payNum) {
        this.payNum = payNum;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getNextStatus() {
        return nextStatus;
    }

    public void setNextStatus(String nextStatus) {
        this.nextStatus = nextStatus;
    }

    public Integer getAcceptUserId() {
        return acceptUserId;
    }

    public void setAcceptUserId(Integer acceptUserId) {
        this.acceptUserId = acceptUserId;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderNum='" + orderNum + '\'' +
                ", orderName='" + orderName + '\'' +
                ", serviceType='" + serviceType + '\'' +
                ", allAmount='" + allAmount + '\'' +
                ", sendOrderStatus='" + sendOrderStatus + '\'' +
                ", status='" + status + '\'' +
                ", acceptStatus='" + acceptStatus + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createBy=" + createBy +
                ", updateBy=" + updateBy +
                ", flowStatus='" + flowStatus + '\'' +
                ", payNum='" + payNum + '\'' +
                ", payStatus='" + payStatus + '\'' +
                ", nextStatus='" + nextStatus + '\'' +
                ", acceptUserId=" + acceptUserId +
                ", userId=" + userId +
                ", products=" + products +
                ", companies=" + companies +
                ", approval=" + approval +
                '}';
    }
}
